Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow invalid values #5

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Conversation

RedMser
Copy link
Contributor

@RedMser RedMser commented Jul 1, 2024

Invalid values would throw an exception which crashes Godot.
Each of the minimum and maximum values are retrieved from the documentation.

Some parameters clamp, while others return with an error.
I decided for each based on what makes sense.
Things like volume or pitch are clamped, while out of bounds indices are errors.

They would otherwise throw an exception which crashes Godot.
Some parameters clamp, while others return with an error.
@GeminiSquishGames
Copy link

Thank you for your help with that. Not sure about @Dudejoe870's status ATM, but busy is probably a good guess. I'll try to build your changes to test at least.

@Dudejoe870
Copy link
Owner

LGTM, the workflows are running right now to make sure everything builds properly (it probably does judging from the code, but just making sure) :)

@Dudejoe870 Dudejoe870 merged commit 92f0259 into Dudejoe870:main Jul 2, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants